<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp" %>
<!DOCTYPE HTML>
<html>
  <head>
    <title>路政执法</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<%@ include file="/common/jscss.jsp" %>
  	<script type="text/javascript">
	  	var layout_west_tree;
		var layout_west_tree_url = '';
		var sessionInfo_userId = '${sessionInfo.id}';
		if (sessionInfo_userId) {
			layout_west_tree_url = '${ctx}/menu/getTree';
		}
		
		var tabss = $("#index_tabs");
			
		
	  	function addTab(options){
	  		var t = $("#index_tabs");
	  		if(options.href !='/hitekCrjWeb/' && options.href !='/hitekCrjWeb//'){
	  			if(t.tabs("exists",options.title)){
		  			t.tabs("select",options.title);
		  		}else{
		  				t.tabs("add",options);
		  		}
	  		}
	  	}
  	</script>
  </head>
  
  <body class="easyui-layout">
  
	  <!-- 上部面板 -->
	  <div class="logo" data-options="region:'north',href:'${ctx}/north.jsp',height:88,collapsible:false">
	  	<div><img alt="" src="${ctx}/style/images/top.png" width="100" height="88"></div>
	  </div>
	   <!-- 下部面板 -->
	  <div data-options="region:'south',title:''" style="height:20px;">
	  	<div  align="center">建议使用IE9以上版本的浏览器，能达到最佳效果!</div>
	  </div>
	  
	   <!-- 左部面板 -->
	  <div data-options="region:'west',split:true,collapsed:false,title:'功能导航'" style="width:200px;">
		  <div class="easyui-panel" data-options="border:false,fit:true">
			<div class="easyui-accordion" data-options="fit:true,border:false">
			    <div title="系统菜单" data-options="iconCls:'icon-save',isonCls:'anchor',tools : [ {
				iconCls : 'database_refresh',
				handler : function() {
					$('#layout_west_tree').tree('reload');
				}
			}, {
				iconCls : 'resultset_next',
				handler : function() {
					var node = $('#layout_west_tree').tree('getSelected');
					if (node) {
						$('#layout_west_tree').tree('expandAll', node.target);
					} else {
						$('#layout_west_tree').tree('expandAll');
					}
				}
			}, {
				iconCls : 'resultset_previous',
				handler : function() {
					var node = $('#layout_west_tree').tree('getSelected');
					if (node) {
						$('#layout_west_tree').tree('collapseAll', node.target);
					} else {
						$('#layout_west_tree').tree('collapseAll');
					}
				}
			} ]" style="overflow:auto;">
					<div class="well well-small">
				    	<ul id="layout_west_tree" class="easyui-tree" data-options="
					    	url:'${ctx}/menu/getTree',
					    	parentField:'pid',
					    	onClick: function(node){
					    	var url = '${ctx}/'+node.attributes.url;
							addTab({title:node.text,href:url,closable:true});}">
						</ul>
					</div>
			    </div>
			    </div>
			</div>
		  </div>
	  </div>
	  
	   <!-- 右部面板 -->
	  <!-- <div data-options="region:'east',title:'center title',split:true,collapsed:true" style="width:200px;"></div> -->
	   <!-- 中部面板是必须有的 -->
	  <div data-options="region:'center'" >
	  		<div id="index_tabs" class="easyui-tabs" data-options="fit:true,border:false" style="width:700px;height:250px">
		        <div title="我的动态" id="userinfotabs" style="padding:10px">
                    <c:if test="${sessionScope.user.userType=='2'}">
		        	    <%@ include file="/common/portal.jsp" %>
                    </c:if>
		        </div>
    		</div>
	  </div>
	  
	  
  </body>
</html>
